<?php

namespace Sffi\ElementPlus\ElList;

class ElImage extends Column
{
    protected bool $isImage=true;

    protected $iHeight;
    protected $iWidth;

    /**
     * @param $title
     * @param $key
     * @param $dataKey
     * @param $height
     * @param $width
     */
    public function __construct($title, $key, $dataKey, $height=50, $width = 50)
    {
        parent::__construct($title, $key, $dataKey);
        $this->iHeight = $height;
        $this->iWidth = $width;
    }

    /**
     * Get the value of isImage
     */
    public function isIsImage(): bool
    {
        return $this->isImage;
    }

    /**
     * Set the value of isImage
     */
    public function setIsImage(bool $isImage): self
    {
        $this->isImage = $isImage;

        return $this;
    }

    /**
     * Get the value of iHeight
     */
    public function getIHeight()
    {
        return $this->iHeight;
    }

    /**
     * Set the value of iHeight
     */
    public function setIHeight($iHeight): self
    {
        $this->iHeight = $iHeight;

        return $this;
    }

    /**
     * Get the value of iWidth
     */
    public function getIWidth()
    {
        return $this->iWidth;
    }

    /**
     * Set the value of iWidth
     */
    public function setIWidth($iWidth): self
    {
        $this->iWidth = $iWidth;

        return $this;
    }
}